/**
 * @param {number[]} candies
 * @param {number} extraCandies
 * @return {boolean[]}
 */
var kidsWithCandies = function(candies, extraCandies) {
    let max = Math.max(...candies)
   return candies.map(v => v + extraCandies >= max)
     
};
console.log(kidsWithCandies([2,3,5,1,3],3));
